package com.kmproject.haifu.mvp.ui.adapter;

import android.content.Intent;
import android.support.annotation.Nullable;
import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jess.arms.utils.ArmsUtils;
import com.kmproject.haifu.R;
import com.kmproject.haifu.mvp.model.entity.beans.HouseMainBean;
import com.kmproject.haifu.mvp.model.entity.beans.MyStoryBean;
import com.kmproject.haifu.mvp.ui.activity.HousePublishSelectTypeActivity;
import com.kmproject.haifu.mvp.ui.activity.ReleaseRentSeekingSelectionTypeActivity;
import com.kmproject.haifu.mvp.ui.activity.SecondHandPublicshActivity;

import java.util.List;

public class HousePublishMainItemAdapter extends BaseQuickAdapter<HouseMainBean.HouseMainItem, BaseViewHolder> {
    MyStoryBean.ResultBean mresultBean;

    public HousePublishMainItemAdapter(@Nullable List<HouseMainBean.HouseMainItem> data) {
        super(R.layout.housepublishmain_item_item, data);

    }

    @Override
    protected void convert(BaseViewHolder helper, HouseMainBean.HouseMainItem item) {
        helper.<ImageView>getView(R.id.housepublishmain_item_item_img).setImageResource(item.getImgId());
        helper.<TextView>getView(R.id.housepublishmain_item_item_txt).setText(item.getItemName());

    }
}
